'use strict';

describe('Service: photoReader', function () {

  // load the service's module
  beforeEach(module('webappApp'));

  // instantiate service
  var photoReader, fileSupport;
  beforeEach(inject(function(_photoReader_) {
    photoReader = _photoReader_;
  }));

  it('should not read photoReader for a non-image', function () {
    file = {type: "application/xml"};
    var called = false;
    var callback = function () {
      called = true;
    };
    photoReader.readMetadata(file, null, callback);
    expect(called).toBeFalsy();
  });

  it('should not read photoReader if files are unsupported', function () {
    fileSupport = false;
    var called = false;
    var callback = function () {
      called = true;
    };
    photoReader.readMetadata(null, null, callback);
    expect(called).toBeFalsy();
  });

  it('should read photoReader from an image', function () {
    var reader = {};
  });
});
